package com.cn.androidpicker.bean;


import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * TODO<json数据源>
 *
 * @author: 小嵩
 * @date: 2017/3/16 15:36
 */

public class ProvincesData implements IPickerViewData {

    private String code;
    private String name;
    private List<CityData> children;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CityData> getChildren() {
        return children;
    }

    public void setChildren(List<CityData> children) {
        this.children = children;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

}
